package com.one.blocks.rbac.controller.valid;

/**
 * @author <a href="mailto:idler41@163.com">linfuxin</a> created by 2022-12-11 16:10:44
 */
public interface AllocatedDataValidateManager<K> {

    /**
     * 是否存在关联数据
     *
     * @param ids 需要验证的id集合
     * @return 存在关联数据的id集合
     */
    default K[] existsDataByKeys(K[] ids) {
        throw new UnsupportedOperationException();
    }

}
